<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    //实例(优化见demo6)
    var movie1 = {
        movieName: "《007》",
        type:"谍战片",
        rate:9,
        showTime:["12:00","15:00","17:00"]
        //showTime:function(){
            //console.log(this);
            //console.log(this.movieName + "12:00");
        //}
    }

    var movie2 = {
        movieName: "《指环王》",
        type:"科幻片",
        rate:8,
        showTime:["12:00","15:00","17:00"]
        //showTime:function(){
            //console.log(this);
            //console.log(this.movieName + "15:00");
        //}
    }

</script>
</html>